﻿(function ($) {
    $.extend($.fn, {
        VaccineSuggest: function (cdAttr, nmAttr) {
            cdAttr = cdAttr || "cd";
            nmAttr = nmAttr || "vl";
            $(this).SuggestEx(AppPath + "/do/SuggestGet.do", { ActionName: "VaccineSuggest" }, function (data, selectedIndex, selectedItem) {
                $(this).attr(cdAttr, data.Items_value[selectedIndex]);
                $(this).val(data.Items[selectedIndex]);
            }, true, cdAttr, nmAttr);
        }
    });
})(jQuery);